import apis from "../services/channelRegiseterApi";

export default {
  namespace: "channelRegisterModel",
  state: {},
  effects: {
    // 注册
    *commit({ payload }, { call }) {
      const res = yield call(apis.commit, payload);
      return res;
    },
    // 注册
    *save({ payload }, { call }) {
      const res = yield call(apis.save, payload);
      return res;
    },
    *test({ payload }, { call }) {
      const res = yield call(apis.test, payload);
      return res;
    }
  }
};
